using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace HRM.Models.Mapping
{
    public class dk_HDHocThuatMap : EntityTypeConfiguration<dk_HDHocThuat>
    {
        public dk_HDHocThuatMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);

            // Properties
            this.Property(t => t.TenNV)
                .HasMaxLength(50);

            this.Property(t => t.MaDDKy)
                .HasMaxLength(50);

            this.Property(t => t.MaDKHDHT)
                .HasMaxLength(50);

            this.Property(t => t.dtncChutri)
                .HasMaxLength(50);

            this.Property(t => t.dtbcThamgia)
                .HasMaxLength(50);

            this.Property(t => t.hdsvSonhom)
                .HasMaxLength(50);

            this.Property(t => t.sttpSotacpham)
                .HasMaxLength(50);

            this.Property(t => t.bsSckChubien)
                .HasMaxLength(50);

            this.Property(t => t.bsSckThamgia)
                .HasMaxLength(50);

            this.Property(t => t.bsGtChubien)
                .HasMaxLength(50);

            this.Property(t => t.bsGtThamgia)
                .HasMaxLength(50);

            this.Property(t => t.bsBdChubien)
                .HasMaxLength(50);

            this.Property(t => t.bsBdThamgia)
                .HasMaxLength(50);

            this.Property(t => t.bsTltkChubien)
                .HasMaxLength(50);

            this.Property(t => t.bsTltkThamgia)
                .HasMaxLength(50);

            this.Property(t => t.bsBdsChubien)
                .HasMaxLength(50);

            this.Property(t => t.bsBdsThamgia)
                .HasMaxLength(50);

            this.Property(t => t.bsXdnhChubien)
                .HasMaxLength(50);

            this.Property(t => t.bsXdnhThamgia)
                .HasMaxLength(50);

            this.Property(t => t.bsCtxdChubien)
                .HasMaxLength(50);

            this.Property(t => t.bsCtxdThamgia)
                .HasMaxLength(50);

            this.Property(t => t.vbdQuocte)
                .HasMaxLength(50);

            this.Property(t => t.vbdTrongnuoc)
                .HasMaxLength(50);

            this.Property(t => t.vbdNoisan)
                .HasMaxLength(50);

            this.Property(t => t.tghthnBaocaovien)
                .HasMaxLength(50);

            this.Property(t => t.tghthnCobaiviet)
                .HasMaxLength(50);

            this.Property(t => t.tghthnThamdu)
                .HasMaxLength(50);

            this.Property(t => t.tgtdChutri)
                .HasMaxLength(50);

            this.Property(t => t.tgtdBaocaovien)
                .HasMaxLength(50);

            this.Property(t => t.tgtdThamdu)
                .HasMaxLength(50);

            this.Property(t => t.tghdKhoahoc)
                .HasMaxLength(50);

            this.Property(t => t.tghdBaove)
                .HasMaxLength(50);

            this.Property(t => t.tghdThamdinh)
                .HasMaxLength(50);

            this.Property(t => t.thamgiaTDTT)
                .HasMaxLength(50);

            this.Property(t => t.tkh_TS)
                .HasMaxLength(50);

            this.Property(t => t.tkh_ThS)
                .HasMaxLength(50);

            this.Property(t => t.tkh_NNg)
                .HasMaxLength(50);

            this.Property(t => t.tkh_NNTH)
                .HasMaxLength(50);

            this.Property(t => t.tkh_NgV)
                .HasMaxLength(50);

            this.Property(t => t.tkh_LLCT)
                .HasMaxLength(50);

            this.Property(t => t.tkh_KNH)
                .HasMaxLength(50);

            this.Property(t => t.tgbd_TS)
                .HasMaxLength(50);

            this.Property(t => t.tgbd_ThS)
                .HasMaxLength(50);

            this.Property(t => t.tgbd_NNg)
                .HasMaxLength(50);

            this.Property(t => t.tgbd_NNTH)
                .HasMaxLength(50);

            this.Property(t => t.tgbd_NgV)
                .HasMaxLength(50);

            this.Property(t => t.tgbd_LLCT)
                .HasMaxLength(50);

            this.Property(t => t.tgbd_KNH)
                .HasMaxLength(50);

            this.Property(t => t.tgkt_TS)
                .HasMaxLength(50);

            this.Property(t => t.tgkt_ThS)
                .HasMaxLength(50);

            this.Property(t => t.tgkt_NNg)
                .HasMaxLength(50);

            this.Property(t => t.tgkt_NNTH)
                .HasMaxLength(50);

            this.Property(t => t.tgkt_NgV)
                .HasMaxLength(50);

            this.Property(t => t.tgkt_LLCT)
                .HasMaxLength(50);

            this.Property(t => t.tgkt_KNH)
                .HasMaxLength(50);

            this.Property(t => t.noihoc_TS)
                .HasMaxLength(50);

            this.Property(t => t.noihoc_ThS)
                .HasMaxLength(50);

            this.Property(t => t.noihoc_NNg)
                .HasMaxLength(50);

            this.Property(t => t.noihoc_NNTH)
                .HasMaxLength(50);

            this.Property(t => t.noihoc_NgV)
                .HasMaxLength(50);

            this.Property(t => t.noihoc_LLCT)
                .HasMaxLength(50);

            this.Property(t => t.noihoc_KNH)
                .HasMaxLength(50);

            this.Property(t => t.hoatdongkhac)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("dk_HDHocThuat");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.SoLuong).HasColumnName("SoLuong");
            this.Property(t => t.TenNV).HasColumnName("TenNV");
            this.Property(t => t.MaDDKy).HasColumnName("MaDDKy");
            this.Property(t => t.MaDKHDHT).HasColumnName("MaDKHDHT");
            this.Property(t => t.dtncChutri).HasColumnName("dtncChutri");
            this.Property(t => t.dtbcThamgia).HasColumnName("dtbcThamgia");
            this.Property(t => t.hdsvSonhom).HasColumnName("hdsvSonhom");
            this.Property(t => t.sttpSotacpham).HasColumnName("sttpSotacpham");
            this.Property(t => t.bsSckChubien).HasColumnName("bsSckChubien");
            this.Property(t => t.bsSckThamgia).HasColumnName("bsSckThamgia");
            this.Property(t => t.bsGtChubien).HasColumnName("bsGtChubien");
            this.Property(t => t.bsGtThamgia).HasColumnName("bsGtThamgia");
            this.Property(t => t.bsBdChubien).HasColumnName("bsBdChubien");
            this.Property(t => t.bsBdThamgia).HasColumnName("bsBdThamgia");
            this.Property(t => t.bsTltkChubien).HasColumnName("bsTltkChubien");
            this.Property(t => t.bsTltkThamgia).HasColumnName("bsTltkThamgia");
            this.Property(t => t.bsBdsChubien).HasColumnName("bsBdsChubien");
            this.Property(t => t.bsBdsThamgia).HasColumnName("bsBdsThamgia");
            this.Property(t => t.bsXdnhChubien).HasColumnName("bsXdnhChubien");
            this.Property(t => t.bsXdnhThamgia).HasColumnName("bsXdnhThamgia");
            this.Property(t => t.bsCtxdChubien).HasColumnName("bsCtxdChubien");
            this.Property(t => t.bsCtxdThamgia).HasColumnName("bsCtxdThamgia");
            this.Property(t => t.vbdQuocte).HasColumnName("vbdQuocte");
            this.Property(t => t.vbdTrongnuoc).HasColumnName("vbdTrongnuoc");
            this.Property(t => t.vbdNoisan).HasColumnName("vbdNoisan");
            this.Property(t => t.tghthnBaocaovien).HasColumnName("tghthnBaocaovien");
            this.Property(t => t.tghthnCobaiviet).HasColumnName("tghthnCobaiviet");
            this.Property(t => t.tghthnThamdu).HasColumnName("tghthnThamdu");
            this.Property(t => t.tgtdChutri).HasColumnName("tgtdChutri");
            this.Property(t => t.tgtdBaocaovien).HasColumnName("tgtdBaocaovien");
            this.Property(t => t.tgtdThamdu).HasColumnName("tgtdThamdu");
            this.Property(t => t.tghdKhoahoc).HasColumnName("tghdKhoahoc");
            this.Property(t => t.tghdBaove).HasColumnName("tghdBaove");
            this.Property(t => t.tghdThamdinh).HasColumnName("tghdThamdinh");
            this.Property(t => t.thamgiaTDTT).HasColumnName("thamgiaTDTT");
            this.Property(t => t.tkh_TS).HasColumnName("tkh_TS");
            this.Property(t => t.tkh_ThS).HasColumnName("tkh_ThS");
            this.Property(t => t.tkh_NNg).HasColumnName("tkh_NNg");
            this.Property(t => t.tkh_NNTH).HasColumnName("tkh_NNTH");
            this.Property(t => t.tkh_NgV).HasColumnName("tkh_NgV");
            this.Property(t => t.tkh_LLCT).HasColumnName("tkh_LLCT");
            this.Property(t => t.tkh_KNH).HasColumnName("tkh_KNH");
            this.Property(t => t.tgbd_TS).HasColumnName("tgbd_TS");
            this.Property(t => t.tgbd_ThS).HasColumnName("tgbd_ThS");
            this.Property(t => t.tgbd_NNg).HasColumnName("tgbd_NNg");
            this.Property(t => t.tgbd_NNTH).HasColumnName("tgbd_NNTH");
            this.Property(t => t.tgbd_NgV).HasColumnName("tgbd_NgV");
            this.Property(t => t.tgbd_LLCT).HasColumnName("tgbd_LLCT");
            this.Property(t => t.tgbd_KNH).HasColumnName("tgbd_KNH");
            this.Property(t => t.tgkt_TS).HasColumnName("tgkt_TS");
            this.Property(t => t.tgkt_ThS).HasColumnName("tgkt_ThS");
            this.Property(t => t.tgkt_NNg).HasColumnName("tgkt_NNg");
            this.Property(t => t.tgkt_NNTH).HasColumnName("tgkt_NNTH");
            this.Property(t => t.tgkt_NgV).HasColumnName("tgkt_NgV");
            this.Property(t => t.tgkt_LLCT).HasColumnName("tgkt_LLCT");
            this.Property(t => t.tgkt_KNH).HasColumnName("tgkt_KNH");
            this.Property(t => t.noihoc_TS).HasColumnName("noihoc_TS");
            this.Property(t => t.noihoc_ThS).HasColumnName("noihoc_ThS");
            this.Property(t => t.noihoc_NNg).HasColumnName("noihoc_NNg");
            this.Property(t => t.noihoc_NNTH).HasColumnName("noihoc_NNTH");
            this.Property(t => t.noihoc_NgV).HasColumnName("noihoc_NgV");
            this.Property(t => t.noihoc_LLCT).HasColumnName("noihoc_LLCT");
            this.Property(t => t.noihoc_KNH).HasColumnName("noihoc_KNH");
            this.Property(t => t.hoatdongkhac).HasColumnName("hoatdongkhac");
        }
    }
}
